﻿// -------------------------------------------------------------------------
//    @FileName         :    AuthAction.h
//    @Author           :    gaoyi
//    @Date             :    24-8-1
//    @Email            :    445267987@qq.com
//    @Module           :    AuthAction
//
// -------------------------------------------------------------------------

#pragma once

#include "IAction.h"
#include "NFComm/NFCore/NFPlatform.h"

class AuthSynAction : public IAction
{
public:
	AuthSynAction(GameApi* pGameAPI, int iSeq): IAction(pGameAPI),
												m_iSendSeq(iSeq)
	{
	}

	virtual ~AuthSynAction()
	{
	}

	virtual int MakePacket();
	virtual int HandlePacket(proto_client2access::C2AMsgHead& oMsgHead, char* pData, int iDataLen, bool& bIsEnd);
private:
	int m_iSendSeq;
};

class AuthAckAction : public IAction
{
public:
	AuthAckAction(GameApi* pGameAPI, int iSeq): IAction(pGameAPI),
												m_iSendSeq(iSeq)
	{
	}

	virtual ~AuthAckAction()
	{
	}

	virtual int MakePacket();
	virtual int HandlePacket(proto_client2access::C2AMsgHead& oMsgHead, char* pData, int iDataLen, bool& bIsEnd);
private:
	int m_iSendSeq;
};
